//
//  AppDelegate.h
//  MiBaoTu
//
//  Created by 彭鹏 on 16/9/18.
//  Copyright © 2016年 com.caesartech15. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "WeiboSDK.h"

@protocol WeiBoDelegate <NSObject>
//登录的代理
-(void)weiboLoginByResponse:(WBBaseResponse *)response;
@end

@protocol WXDelegate <NSObject>

-(void)loginSuccessByCode:(NSString *)code;

@end
@protocol QQShareDelegate <NSObject>

-(void)shareSuccssWithQQCode:(NSInteger)code;
@end
@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (assign, nonatomic) NetworkStatus networkStatus;

//跳转
- (void)setUpTabbar:(BOOL)isTabbar;

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;

@property (nonatomic, weak) id<WXDelegate> wxDelegate;
@property (weak  , nonatomic) id<WeiBoDelegate> weiboDelegate;
@property (weak  , nonatomic) id<QQShareDelegate> qqDelegate;
@end

